热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

V2Newpreset`v2mstaptdatlczsty`withAirtablereplacingGraphCMS(basedon`v2mstaptdgcmslczsty`)

Demoshttps://v2-mst-aptd-at-lcz-sty.vercel.app/usesthelatestbr


Demos
  • https://v2-mst-aptd-at-lcz-sty.vercel.app/ uses the latest branch commit

  • https://nrn-v2-mst-aptd-at-lcz-sty-c1.vercel.app/ is the production environment for Customer 1

  • https://nrn-v2-mst-aptd-at-lcz-sty-c1-preview.vercel.app/ is the preview/staging environment for Customer 1 (with Preview mode enabled)

  • https://nrn-v2-mst-aptd-at-lcz-sty-c2.vercel.app/ is the production environment for Customer 2

  • https://nrn-v2-mst-aptd-at-lcz-sty-c2-preview.vercel.app/ is the preview/staging environment for Customer 2 (with Preview mode enabled)

Status

This PR/branch is stable and has been added as the new official/default NRN preset.

Notes

This PR is not meant to be merged, but to provide a diff against the base branch (which is a preset using GraphCMS)

Objectives

The goal is to replace GraphQL API by Airtable API, for several reasons:
- Showcase how to consume a REST-ish API
- Easier to setup than GraphCMS
- Airtable provides a free plan, and has much higher limitations than GraphCMS for its free plan
- Requested https://github.com/UnlyEd/next-right-now/issues/16
- Make this the new default preset (simpler, cheaper)

Base preset: v2-mst-aptd-gcms-lcz-sty
New preset name: v2-mst-aptd-at-lcz-sty

Roadmap
  • ✅ Setup AT base and tables

  • ✅ Fetch data from AT API

  • ✅ Update TS data types (minor differences between GraphCMS schema and Airtable schema)

  • ✅ Consolidate all AT API calls into one (AT uses a REST API, which forces us to send 3 requests to fetch all the data we need)

  • ✅ Sanitise AT records

  • ✅ Handle content i18n (for each field, select the value for the most preferred locale if set, otherwise fallback to secondary locale)

  • ✅ Completely remove GraphQL/GraphCMS/Apollo related code (useless with this preset, should lower the bundle size quite a bit)

  • ✅ Update UIs to use data from Airtable

  • ✅ Optimise requests to Airtable API (use local cache, like https://github.com/alexreardon/memoize-one#readme)
    • WIP PR at https://github.com/UnlyEd/next-right-now/pull/92

    • Open issue at https://github.com/vercel/next.js/discussions/13765


  • ✅ Display images from Airtable (
    1
    AirtableAsset

    component)


  • Handle image optimisations (?)

  • ✅ Integrate Stacker as an admin backend (deal in progress) and configure it so that visitors can use it to update the data and see live changes

该提问来源于开源项目:UnlyEd/next-right-now

[GitHub Actions]
Deployment FAILED
Commit 5f8b8f798a833a2e72218e2339ac2ccdb46b20a3 failed to deploy to (click to see logs)


推荐阅读
  • 本文将介绍如何编写一些有趣的VBScript脚本,这些脚本可以在朋友之间进行无害的恶作剧。通过简单的代码示例,帮助您了解VBScript的基本语法和功能。 ... [详细]
  • 本文深入探讨了 Java 中的 Serializable 接口,解释了其实现机制、用途及注意事项,帮助开发者更好地理解和使用序列化功能。 ... [详细]
  • 采用IKE方式建立IPsec安全隧道
    一、【组网和实验环境】按如上的接口ip先作配置,再作ipsec的相关配置,配置文本见文章最后本文实验采用的交换机是H3C模拟器,下载地址如 ... [详细]
  • Explore a common issue encountered when implementing an OAuth 1.0a API, specifically the inability to encode null objects and how to resolve it. ... [详细]
  • 使用 Azure Service Principal 和 Microsoft Graph API 获取 AAD 用户列表
    本文介绍了一段通用代码示例,该代码不仅能够操作 Azure Active Directory (AAD),还可以通过 Azure Service Principal 的授权访问和管理 Azure 订阅资源。Azure 的架构可以分为两个层级:AAD 和 Subscription。 ... [详细]
  • 作为一名 Ember.js 新手,了解如何在路由和模型中正确加载 JSON 数据是至关重要的。本文将探讨两者之间的差异,并提供实用的建议。 ... [详细]
  • 版本控制工具——Git常用操作(下)
    本文由云+社区发表作者:工程师小熊摘要:上一集我们一起入门学习了git的基本概念和git常用的操作,包括提交和同步代码、使用分支、出现代码冲突的解决办法、紧急保存现场和恢复 ... [详细]
  • Explore how Matterverse is redefining the metaverse experience, creating immersive and meaningful virtual environments that foster genuine connections and economic opportunities. ... [详细]
  • 本文详细介绍了Akka中的BackoffSupervisor机制,探讨其在处理持久化失败和Actor重启时的应用。通过具体示例,展示了如何配置和使用BackoffSupervisor以实现更细粒度的异常处理。 ... [详细]
  • 本文详细介绍了Java编程语言中的核心概念和常见面试问题,包括集合类、数据结构、线程处理、Java虚拟机(JVM)、HTTP协议以及Git操作等方面的内容。通过深入分析每个主题,帮助读者更好地理解Java的关键特性和最佳实践。 ... [详细]
  • 扫描线三巨头 hdu1928hdu 1255  hdu 1542 [POJ 1151]
    学习链接:http:blog.csdn.netlwt36articledetails48908031学习扫描线主要学习的是一种扫描的思想,后期可以求解很 ... [详细]
  • 基于结构相似性的HOPC算法:多模态遥感影像配准方法及Matlab实现
    本文介绍了一种基于结构相似性的多模态遥感影像配准方法——HOPC算法,该算法通过相位一致性模型构建几何结构特征描述符,能够有效应对多模态影像间的非线性辐射差异。文章详细阐述了HOPC算法的原理、实验结果及其在多种遥感影像中的应用,并提供了相应的Matlab代码。 ... [详细]
  • 本文详细介绍了C++中map容器的多种删除和交换操作,包括clear、erase、swap、extract和merge方法,并提供了完整的代码示例。 ... [详细]
  • 本文深入分析了 USDC 的稳定性和可能的救援措施,探讨了在硅谷银行破产后 USDC 面临的风险以及行业内的反应。 ... [详细]
  • 本文介绍了如何利用Python的高精度计算库mpmath实现π的100种不同计算方法。通过设置更高的精度和优化的数学函数,这些方法能够提供极其精确的结果。 ... [详细]
author-avatar
梁梁庆新
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有